package com.hk.manage.login.excel;


import cn.afterturn.easypoi.excel.annotation.Excel;
import com.hk.commons.base.BaseImport;
import com.hk.commons.utils.DateUtils;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

public class ManagerUserImport extends BaseImport {



    @Excel(name = "用户名")
    private String username;

    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickName;

    /**
     * 最后登录时间
     */
    @Excel(name = "上传日期",format = DateUtils.FORMAT_FULL)
    private Date lastLogin;


    /**
     * 最后登录时间
     */
    @Excel(name = "手机")
    @Pattern(regexp = "^[1](([3][0-9])|([4][5-9])|([5][0-3,5-9])|([6][5,6])|([7][0-8])|([8][0-9])|([9][1,8,9]))[0-9]{8}$",message = "输入有误")
    @NotNull(message = "不能为空")
    private String phone;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Date getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Date lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
